Optimal. Leaf size=147 \[ \frac {2 a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {a}}\right )}{d}-\frac {43 a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{16 \sqrt {2} d}-\frac {a^2 \sqrt {a+a \sec (c+d x)}}{4 d (1-\sec (c+d x))^2}-\frac {11 a^2 \sqrt {a+a \sec (c+d x)}}{16 d (1-\sec (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 147, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3965, 105, 156,
162, 65, 213} \begin {gather*} \frac {2 a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a \sec (c+d x)+a}}{\sqrt {a}}\right )}{d}-\frac {43 a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a \sec (c+d x)+a}}{\sqrt {2} \sqrt {a}}\right )}{16 \sqrt {2} d}-\frac {11 a^2 \sqrt {a \sec (c+d x)+a}}{16 d (1-\sec (c+d x))}-\frac {a^2 \sqrt {a \sec (c+d x)+a}}{4 d (1-\sec (c+d x))^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 105
Rule 156
Rule 162
Rule 213
Rule 3965
Rubi steps
\begin {align*} \int \cot ^5(c+d x) (a+a \sec (c+d x))^{5/2} \, dx &=\frac {a^6 \text {Subst}\left (\int \frac {1}{x (-a+a x)^3 \sqrt {a+a x}} \, dx,x,\sec (c+d x)\right )}{d}\\ &=-\frac {a^2 \sqrt {a+a \sec (c+d x)}}{4 d (1-\sec (c+d x))^2}-\frac {a^3 \text {Subst}\left (\int \frac {4 a^2+\frac {3 a^2 x}{2}}{x (-a+a x)^2 \sqrt {a+a x}} \, dx,x,\sec (c+d x)\right )}{4 d}\\ &=-\frac {a^2 \sqrt {a+a \sec (c+d x)}}{4 d (1-\sec (c+d x))^2}-\frac {11 a^2 \sqrt {a+a \sec (c+d x)}}{16 d (1-\sec (c+d x))}+\frac {\text {Subst}\left (\int \frac {8 a^4+\frac {11 a^4 x}{4}}{x (-a+a x) \sqrt {a+a x}} \, dx,x,\sec (c+d x)\right )}{8 d}\\ &=-\frac {a^2 \sqrt {a+a \sec (c+d x)}}{4 d (1-\sec (c+d x))^2}-\frac {11 a^2 \sqrt {a+a \sec (c+d x)}}{16 d (1-\sec (c+d x))}-\frac {a^3 \text {Subst}\left (\int \frac {1}{x \sqrt {a+a x}} \, dx,x,\sec (c+d x)\right )}{d}+\frac {\left (43 a^4\right ) \text {Subst}\left (\int \frac {1}{(-a+a x) \sqrt {a+a x}} \, dx,x,\sec (c+d x)\right )}{32 d}\\ &=-\frac {a^2 \sqrt {a+a \sec (c+d x)}}{4 d (1-\sec (c+d x))^2}-\frac {11 a^2 \sqrt {a+a \sec (c+d x)}}{16 d (1-\sec (c+d x))}-\frac {\left (2 a^2\right ) \text {Subst}\left (\int \frac {1}{-1+\frac {x^2}{a}} \, dx,x,\sqrt {a+a \sec (c+d x)}\right )}{d}+\frac {\left (43 a^3\right ) \text {Subst}\left (\int \frac {1}{-2 a+x^2} \, dx,x,\sqrt {a+a \sec (c+d x)}\right )}{16 d}\\ &=\frac {2 a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {a}}\right )}{d}-\frac {43 a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{16 \sqrt {2} d}-\frac {a^2 \sqrt {a+a \sec (c+d x)}}{4 d (1-\sec (c+d x))^2}-\frac {11 a^2 \sqrt {a+a \sec (c+d x)}}{16 d (1-\sec (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.31, size = 138, normalized size = 0.94 \begin {gather*} \frac {(a (1+\sec (c+d x)))^{5/2} \left (32 \tanh ^{-1}\left (\sqrt {1+\sec (c+d x)}\right ) (-1+\sec (c+d x))^2+\sqrt {1+\sec (c+d x)} (-15+11 \sec (c+d x))-86 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {1+\sec (c+d x)}}{\sqrt {2}}\right ) \sec ^2(c+d x) \sin ^4\left (\frac {1}{2} (c+d x)\right )\right )}{16 d (-1+\sec (c+d x))^2 (1+\sec (c+d x))^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(375\) vs.
\(2(122)=244\).
time = 0.20, size = 376, normalized size = 2.56
method | result | size |
default | \(-\frac {\sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )\right )^{2} \left (32 \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctan \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {2}}{2}\right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}+43 \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctan \left (\frac {1}{\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}\right ) \left (\cos ^{2}\left (d x +c \right )\right )-64 \cos \left (d x +c \right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctan \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {2}}{2}\right ) \sqrt {2}-86 \cos \left (d x +c \right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctan \left (\frac {1}{\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}\right )+32 \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctan \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {2}}{2}\right ) \sqrt {2}+43 \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctan \left (\frac {1}{\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}\right )+30 \left (\cos ^{2}\left (d x +c \right )\right )-22 \cos \left (d x +c \right )\right ) a^{2}}{32 d \sin \left (d x +c \right )^{4}}\) | \(376\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 247 vs.
\(2 (118) = 236\).
time = 2.64, size = 503, normalized size = 3.42 \begin {gather*} \left [\frac {64 \, {\left (a^{2} \cos \left (d x + c\right )^{2} - 2 \, a^{2} \cos \left (d x + c\right ) + a^{2}\right )} \sqrt {a} \log \left (-2 \, a \cos \left (d x + c\right ) - 2 \, \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) - a\right ) + 43 \, {\left (\sqrt {2} a^{2} \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} a^{2} \cos \left (d x + c\right ) + \sqrt {2} a^{2}\right )} \sqrt {a} \log \left (-\frac {2 \, \sqrt {2} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) - 3 \, a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right ) - 1}\right ) - 4 \, {\left (15 \, a^{2} \cos \left (d x + c\right )^{2} - 11 \, a^{2} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}}}{64 \, {\left (d \cos \left (d x + c\right )^{2} - 2 \, d \cos \left (d x + c\right ) + d\right )}}, \frac {43 \, {\left (\sqrt {2} a^{2} \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} a^{2} \cos \left (d x + c\right ) + \sqrt {2} a^{2}\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{a \cos \left (d x + c\right ) + a}\right ) - 64 \, {\left (a^{2} \cos \left (d x + c\right )^{2} - 2 \, a^{2} \cos \left (d x + c\right ) + a^{2}\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{a \cos \left (d x + c\right ) + a}\right ) - 2 \, {\left (15 \, a^{2} \cos \left (d x + c\right )^{2} - 11 \, a^{2} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}}}{32 \, {\left (d \cos \left (d x + c\right )^{2} - 2 \, d \cos \left (d x + c\right ) + d\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.07, size = 177, normalized size = 1.20 \begin {gather*} \frac {\frac {43 \, \sqrt {2} a^{3} \arctan \left (\frac {\sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}}{\sqrt {-a}}\right ) \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}{\sqrt {-a}} - \frac {64 \, a^{3} \arctan \left (\frac {\sqrt {2} \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}}{2 \, \sqrt {-a}}\right ) \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}{\sqrt {-a}} - \frac {\sqrt {2} {\left (13 \, {\left (-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a\right )}^{\frac {3}{2}} a^{3} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) - 11 \, \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )}}{a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4}}}{32 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\mathrm {cot}\left (c+d\,x\right )}^5\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________